package com.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.demo.common.model.BaseQuery;
import com.demo.config.annotation.DataScope;
import com.demo.config.query.ActivityQuery;
import com.demo.entity.Activity;
import com.demo.vo.ActivityVo;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ActivityMapper extends BaseMapper<Activity> {


    @DataScope(tableField = "ta",tableAlias = "owner_id")
    List<ActivityVo> selectAllList(@Param("baseQuery") BaseQuery baseQuery,@Param("activityQuery") ActivityQuery activityQuery);


    ActivityVo queryActivityDetailById(Integer activityId);

    List<Activity> queryAllActivityList();
}